﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<InvoiceInvoker.MvcUI.ViewModels.ProductsViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Dodaj produkt - InvoiceInvoker
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Dodaj produkt</h2>

    <% Html.EnableClientValidation(); %>

    <% using (Html.BeginForm()) {%>

        <fieldset>
            <legend>Dodajesz nowy produkt</legend>
            <%: Html.EditorFor(model => model.Product, new { VatRates = Model.VatRates }) %>
            <p>
                <input type="submit" value="Dodaj" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Powrót do produktów", "Index") %>
    </div>

</asp:Content>

